Skip to content

feat: add SupportPackageIsVersion1 compile-time version sentinel#17

Merged
ankurs merged 2 commits intomainfrom
feat/support-package-version-sentinel
Mar 26, 2026
Merged

feat: add SupportPackageIsVersion1 compile-time version sentinel#17
ankurs merged 2 commits intomainfrom
feat/support-package-version-sentinel

Conversation

@ankurs
Copy link
Member

@ankurs ankurs commented Mar 26, 2026

Summary

  • Add SupportPackageIsVersion1 constant following the gRPC SupportPackageIsVersion pattern
  • Reference upstream package sentinels to enforce version compatibility at compile time
  • When a breaking change is made, export a new version and remove the old one to force coordinated updates

Test plan

  • go build ./... passes (with updated upstream dependencies)

Add version compatibility constant and reference upstream package
sentinels to enforce coordinated version updates at compile time.
Follows the gRPC SupportPackageIsVersion pattern.
Copilot AI review requested due to automatic review settings March 26, 2026 01:23
@coderabbitai
Copy link

coderabbitai bot commented Mar 26, 2026

Warning

Rate limit exceeded

@ankurs has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 16 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5d553ed9-e82e-48f0-9e42-641bd8662da1

📥 Commits

Reviewing files that changed from the base of the PR and between 7655740 and b06738a.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (3)
  • errors.go
  • go.mod
  • notifier/notifier.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/support-package-version-sentinel

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an exported “version sentinel” constant to the errors package (gRPC-style) and introduces a compile-time reference to an upstream package sentinel to force coordinated upgrades when breaking changes occur.

Changes:

  • Export SupportPackageIsVersion1 from the root errors package for downstream compile-time compatibility checks.
  • Add a compile-time sentinel reference to github.com/go-coldbrew/log in notifier to enforce dependency version compatibility.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
notifier/notifier.go Adds a package-level version sentinel reference against the upstream log package.
errors.go Exports SupportPackageIsVersion1 for downstream packages to reference as a compile-time compatibility check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ankurs ankurs merged commit 3d22b78 into main Mar 26, 2026
8 checks passed
@ankurs ankurs deleted the feat/support-package-version-sentinel branch March 26, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants